package com.kuangstudy.controller.err;

import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author zhangfushuai
 * @description 跳转到错误页面
 * @since 2022/4/17 18:27
 **/
@Controller
public class ErrorPageController implements ErrorController {

    @GetMapping("/error")
    public String errorpage() {
        return "error/index";
    }
}
